package com.morgan.basemodule.ext

import com.morgan.basemodule.utils.ThreadWorker

/**
 *description：
 *<br>author：caowugao
 *<br>time：2021/4/2 0002 17:28
 */

fun runOnMain(task : Runnable) = ThreadWorker.getInstance().runOnMain(task)

fun runOnMainDelay(task : Runnable, delay : Long) = ThreadWorker.getInstance().runOnMainDelay(task, delay)

fun runOnIO(task: Runnable) = ThreadWorker.getInstance().runOnIO(task)

fun runOnIODelay(task : Runnable, delay : Long) = ThreadWorker.getInstance().runOnIODelay(task, delay)